package com.jxd.project.report.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jxd.project.report.model.Report;
import com.jxd.project.report.vo.ReportWithEname;

import java.util.List;
import java.util.Map;

public interface IReportService extends IService<Report> {
    Map<String,Object> getLostReport(Map<String, String> queryMap);

    Map<String,Object> getLostReportByDept(Map<String, String> queryMap);

    Map<String,Object> getAllReport(Map<String, String> queryMap);

    Map<String,Object> getCheckReport(Map<String, String> queryMap);

    ReportWithEname getOneReport(int reportid);

    Map<String,Object> getReturnReport(Map<String, String> queryMap);

    boolean saveReport(Report report);

    boolean passBatch(List<Integer> reportids);

    boolean rejectBatch(List<Integer> reportids);

    boolean updateReport(Report report);

    Map<String,Object> getWorkloadByMonth(Map<String, String> queryMap);

    Map<String,Object> getOvertimeByMonth(Map<String, String> queryMap);

    boolean isAbsence(Map<String, String> queryMap);
}
